import { formatPermission } from '@/router/format'

export const storeUserCouponListRoutes = {
  path: '/merchant/operation/user/coupon/index',
  name: 'operationUserCouponIndex',
  component: () => import(/* webpackChunkName: "operation-user" */ '@/views/operation/user/coupon/index'),
  meta: {
    title: '用户卡券',
    icon: 'el-icon-s-custom'
  },
  permission: ['/merchant/operation/user/coupon/list'],
  redirect: '/merchant/operation/user/coupon/list',
  children: [
    {
      path: '/merchant/operation/user/coupon/list',
      name: 'operationUserCouponList',
      component: () => import(/* webpackChunkName: "operation-user" */ '@/views/operation/user/coupon/list'),
      meta: {
        title: '用户卡券',
      },
    },
  ],
}
